package com.lanou.controller;

import com.lanou.bean.T8Tcommodity.Commodity;
import com.lanou.mapper.T8TCommodityMapper;
import com.lanou.service.T8TBuildingService;
import com.lanou.utils.AjaxResult;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by dllo on 18/3/16.
 */
@Controller
public class T8TBuildingController {
    @Resource
    private T8TBuildingService t8TBuildingService;
    @Resource
    private T8TCommodityMapper t8TCommodityMapper;
    /**
     *
     * @return 返回 建材城下的分类及下面的子分类
     * 开发人:孙涛
     */
    @ResponseBody
    @RequestMapping(value = "/findAll")
    public AjaxResult findAll(){
        return t8TBuildingService.findAll();
    }

    /**
     *
     * @return 商城:建材城页
     * 开发人:孙涛
     */
    @ResponseBody
    @RequestMapping(value = "/findOneSalesPage")
    public AjaxResult findOneSalesPage(){
        return t8TBuildingService.findOneSalesPage(1,11,1);
    }
    @ResponseBody
    @RequestMapping(value = "/findTwoSalesPage")
    public AjaxResult findTwoSalesPage(){
        return t8TBuildingService.findOneSalesPage(1,11,2);
    }
    @ResponseBody
    @RequestMapping(value = "/findThreeSalesPage")
    public AjaxResult findThreeSalesPage(){
        return t8TBuildingService.findOneSalesPage(1,11,3);
    }
    @ResponseBody
    @RequestMapping(value = "/findFourSalesPage")
    public AjaxResult findFourSalesPage(){
        return t8TBuildingService.findOneSalesPage(1,11,4);
    }
    @ResponseBody
    @RequestMapping(value = "/findFiveSalesPage")
    public AjaxResult findFiveSalesPage(){
        return t8TBuildingService.findOneSalesPage(1,11,5);
    }
    @ResponseBody
    @RequestMapping(value = "/findSixSalesPage")
    public AjaxResult findSixSalesPage(){
        return t8TBuildingService.findOneSalesPage(1,11,6);
    }
    @ResponseBody
    @RequestMapping(value = "/findSevenSalesPage")
    public AjaxResult findSevenSalesPage(){
        return t8TBuildingService.findOneSalesPage(1,11,7);
    }


}
